const createView = () => {
    let markup = `
<ul id="tabbutton">
<li class="hover">中文</li>
<li>英文</li>
</ul>
<form action="" class="form-horizontal modal-form" role="form" id="form">
<div class="form-group">
        <label for="cate_id" class="col-sm-2 control-label">文章分类:</label>
        <div class="col-sm-9">
          <select name="cate" id="cate_id" class="form-control" >
          </select>
           <input type="hidden" id="content" name="link"  class="form-control" >
        </div>
</div>
 <div class="form-group">
        <label for="sort" class="col-sm-2 control-label">排序:</label>
        <div class="col-sm-9">
            <input type="text" id="sort" name="sort" class="form-control" placeholder="数值越大越靠前" value="0">
        </div>
  </div>
 <div class="form-group">
        <label for="thumb" class="col-sm-2 control-label">缩略图:</label>
        <div class="col-sm-9">
            <div class="uploader" id="uploader">
                <div id="picker1">上传</div>
                 <div class="list"></div>
                <input type="hidden" id="thumb"  name="thumb" class="form-control">
             </div>
        </div>
    </div>
<div class="form-group">
        <label  class="col-sm-2 control-label">链接下载:</label>
        <div class="col-sm-9">
            <div class="form-control radio-box resetActive">
                <input type="radio" id="yes" name="is_url" value="1"><label for="yes">是</label>
                <input type="radio" id="no" name="is_url" checked  value="0"><label for="no">否</label>
             </div>
        </div>
</div>
<div class="baseInfo active">   
    <div class="form-group">
        <label for="title_zh" class="col-sm-2 control-label">中文标题:</label>
        <div class="col-sm-9">
            <input type="text" id="title_zh" name="title_zh" class="form-control">
        </div>
    </div>
     <div class="form-group">
        <label for="keyword_zh" class="col-sm-2 control-label">中文关键词:</label>
        <div class="col-sm-9">
            <input type="text" id="keyword_zh" name="keyword_zh" class="form-control">
        </div>
    </div>
     <div class="form-group">
        <label for="desc_zh " class="col-sm-2 control-label">中文简介:</label>
        <div class="col-sm-9">
            <textarea class="form-control" rows="4" name="desc_zh" id="desc_zh"></textarea>
        </div>
    </div>
    <div class="form-group contentShow">
        <h4 class="col-sm-12">中文内容:</h4>
        <div class="col-sm-12"><script type="text/plain" id="myEditor1"  name="content_zh"  style="width:760px;height:350px;"><p></p></script></div>
    </div>
</div>
<div class="detail shownone">
   <div class="form-group">
        <label for="title_zh" class="col-sm-2 control-label">英文标题:</label>
        <div class="col-sm-9">
            <input type="text" id="title_zh" name="title_en" class="form-control">
        </div>
    </div>
     <div class="form-group">
        <label for="keyword_en" class="col-sm-2 control-label">英文关键词:</label>
        <div class="col-sm-9">
            <input type="text" id="keyword_en" name="keyword_en" class="form-control">
        </div>
    </div>
     <div class="form-group">
        <label for="desc_en " class="col-sm-2 control-label">英文简介:</label>
        <div class="col-sm-9">
            <textarea class="form-control" rows="4" name="desc_en" id="desc_en"></textarea>
        </div>
    </div>
    <div class="form-group contentShow">
        <h4 class="col-sm-12">英文内容:</h4>
        <div class="col-sm-12"><script type="text/plain" id="myEditor2" name="content_en" style="width:760px;height:350px;"><p></p></script></div>
    </div>
</div>
<div class="form-group uploadContent">
        <label  class="col-sm-2 control-label">文件上传:</label>
        <div class="col-sm-9">
            <span class="btn  btn-primary" id="selectFile"  onclick="upFile()">请选择文件</span>
             <span style="margin-left: 10px;color:#3F81BB;" id="linkUrl"></span>
            <input type="file" name="fileupload" id="fileupload" style="display: none;"/>
        </div>
</div>
<div class="form-group">
        <div class="btn-box">
          <input type="button" class="btn btn-primary" id="submitBtn"  value="提交">
        </div>
</div>
</form>
<script type="text/javascript">

      window.UMEDITOR_HOME_URL="/suxun/add/";
      UM.delEditor('myEditor1');
      var um = UM.getEditor('myEditor1');
      UM.delEditor('myEditor2');
      var um = UM.getEditor('myEditor2');
</script>
    `;
    return markup;

}

export {
    createView
}